//只做和路由有关的内容
const express = require("express");
let app = express();
let router = express.Router();
router.get("/", (req, res) => {
  res.sendFile(__dirname + "/views/index.html");
});
router.get("/product", (req, res) => {
  res.sendFile(__dirname + "/views/product.html");
});
router.get("/user", (req, res) => {
  res.sendFile(__dirname + "/views/user.html");
});
module.exports = router;
